package com.innoking.docsys.doc.service.impl;

import com.innoking.docsys.doc.service.DocService;
import com.innoking.docsys.doc.dto.UpmsUser;
import com.innoking.docsys.doc.feign.UserRestInterface;
import com.innoking.docsys.utils.JsonToOtherUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DocServiceIMPL implements DocService {

    @Autowired
    UserRestInterface userRestInterface;



    @Override
    public String testUser(Integer id) {

        UpmsUser user=new UpmsUser();
        user.setUserId(195L);

        String paramStr= JsonToOtherUtil.parseObj2RestParam(user);
        return  userRestInterface.getUserbyId(paramStr) ;
    }
}